pythagorean theorem problem